package ms.jasim.console.gui;

import ms.spm.IAppContext;

import com.vlsolutions.swing.docking.DockKey;
import com.vlsolutions.swing.docking.DockingConstants;
import com.vlsolutions.swing.docking.DockingConstants.Split;

public class ControlDockPane extends DefaultDockPane {

	public ControlDockPane(IAppContext context) {
		super(context);
	}

	private static final long serialVersionUID = 1L;

	@Override
	protected DockKey createDocKey() {
		DockKey key = new DockKey(this.getClass().getName(), "Command", "", null, DockingConstants.HIDE_BOTTOM);
		key.setMaximizeEnabled(true);
		key.setAutoHideEnabled(true);
		key.setCloseEnabled(true);
		key.setResizeWeight(0.3f);
		return key;
	}
	
	@Override
	public Split getDefaultSplit() {
		return DockingConstants.SPLIT_BOTTOM;
	}
}
